﻿
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    ViewBag.Title = "报单列表";
}

@section Top {
    @Html.Partial("_Top")
}
<div class="container-fluid">
    <ol class="breadcrumb">
        <li class="breadcrumb-item">
            报单管理
        </li>
        <li class="breadcrumb-item active">报单列表</li>
    </ol>
    <div class="card mb-3">
        <div class="card-header">
            <div class="row" style="line-height:2.3em">
                <div class="col-lg-5">
                        <span><i class="fa fa-table"></i> 报单列表</span>
                    </div>
                    <div class="col-lg-2">
                        <div class="input-group">
                            <span class="input-group-addon">开始</span>
                            <input class="form-control mb-0 input-sm" type="date" value="" id="SDate">
                        </div>
                    </div>
                    <div class="col-lg-2">
                        <div class="input-group">
                            <span class="input-group-addon">结束</span>
                            <input class="form-control mb-0 input-sm" type="date" value="" id="EndDate">
                        </div>
                    </div>
                    <div class="col-lg-2">
                        <div class="input-group">
                            <input class="form-control mb-0" type="text" value="" id="Search" placeholder="订单类型,姓名,学员编号,订单编号">
                        </div>
                    </div>
                    @if (Services.Cookie.GetUserType() == bonus.Models.Grade.AMDIN)
                    {   
                        <button type="button" class="btn btn-primary" id="dateSearch">搜索</button>
                        <button type="button" class="btn btn-primary ml-2" id="dateDeriveExcel">导出</button>
                    }
                    else
                    {
                        <div class="col-lg-1 text-center">
                            <button type="button" class="btn btn-primary" id="dateSearch">搜索</button>
                        </div>
                    }
            </div>
        </div>
        <div class="card-body">
            <table class="table table-bordered text-center" id="dataTable" width="100%" cellspacing="0">
                <thead>
                    <tr>
                        <th>订单编号</th>
                        <th>订单类型</th>
                        <th>购买方式</th>
                        <th>学员编号</th>
                        <th>学员姓名</th>
                        <th>服务中心</th>
                        <th>PV值</th>
                        <th>订单时间</th>
                        @if (Services.Cookie.GetUserType() != bonus.Models.Grade.USER)
                        {
                            <th style="width:10%">操作</th>
                        }
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
        <div class="card-footer small text-muted">数据跟新时间为 @DateTime.Now.ToString("yyyy-MM-dd")</div>
    </div>
</div>

<script src="~/Scripts/sb-admin.js"></script>
<!-- <script src="~/Scripts/sb-admin-datatables.js"></script> -->
<script src="~/Scripts/OrderAll.js"></script>